package com.cxs.enums;

/*
 * @Author:cxs
 * @Date:2021/10/15  15:00
 * @Version 1.0
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
public enum HospitalErrorResultEnum {
    // 用户名密码错误
    USERNAME_PASSWORD_ERROR(205,"【登录模块】:用户名或密码错误"),
    NO_KNOWEN_ERROR(201,"未知错误"),
    // 参数校验错误
    PARAMETERS_ERROR(203,"【参数错误】:参数传递错误"),
    REQUEST_PARAMETERS_ERROR(203,"【参数错误】:请求参数错误"),
    // 未登录
    NO_LOGIN_ERROR(401,"【登录模块】:对不起，您尚未登陆"),
    // 无权限
    NO_PROMISSION(403,"【权限不足】:对不起，无权限访问"),
    // 用户名失效
    USERNAME_EXPRISE(206,"【登录模块】:用户名已失效"),
    USER_PARAMETER_ERROR(203,"【用户模块】:参数传递错误"),
    USER_SAVE_USER_ERROR(201,"【用户模块】:添加用户失败"),
    USER_UPDATE_USER_ERROR(201,"【用户模块】:修改用户失败"),
    USER_DELETE_USER_ERROR(201,"【用户模块】:删除用户失败"),
    USER_PWD_INIT_ERROR(201,"【用户模块】:密码重置失败"),
    USER_SAVE_USER_ROLE_ERROR(201,"【用户模块】:添加角色给用户失败"),
    ROLE_PARAMETER_ERROR(203,"【角色模块】:参数传递错误"),
    ROLE_UPDATE_ERROR(201,"【角色模块】:角色信息修改失败"),
    ROLE_INSERT_ERROR(201,"【角色模块】:角色添加失败"),
    ROLE_DELETE_ERROR(201,"【角色模块】:角色删除失败"),
    ROLE_SAVE_MENU_ERROR(201,"【角色模块】:角色授权失败"),
    MENU_PARAMETER_ERROR(203,"【菜单模块】:参数传递错误"),
    MENU_SAVE_ERROR(201,"【菜单模块】:菜单添加失败"),
    MENU_UPDATE_ERROR(201,"【菜单模块】:菜单修改失败"),
    MENU_DELETE_ERROR(201,"【菜单模块】:菜单删除失败"),
    DOCTER_SHEDULE_ERROR(201,"【医生模块】:排班请求出错"),
    REPORT_SAVE_ERROR(201,"【门诊模块】:添加门诊失败"),
    REPORT_DELETE_ERROR(201,"【门诊模块】:删除门诊失败"),
    REPORT_UPDATE_ERROR(201,"【门诊模块】:修改门诊信息失败"),
    CASHIER_ADD_ERROR(201,"【药品划价】:添加药品失败"),
    CASHIER_DELETE_ERROR(201,"【药品划价】:删除药品失败"),
    CASHIER_UPDATE_ERROR(201,"【药品划价】:修改药品失败"),
    CASHIER_INSERT_ERROR(201,"【项目划价】:添加项目失败"),
    ;
    private Integer code;

    private String msg;

    HospitalErrorResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
